package Inheritance;

public class PG extends Student {

	private String degree;
	
	public PG() {
		
	};
	
	public void setDegree(String degree) {
		this.degree = degree;
	}
	
	public void printFavBeer() {
		System.out.println("I drink " + this.favBeer);
	}
	
	public void printName() {
		System.out.println("My name is " + this.name);
	}
	
	public void printOpinion() {
		System.out.println("Proposes " + this.opinion);
	}
	
	public void printDegree() {
		System.out.println(degree);
	}
	
	public void printMatric() {
		System.out.println("Matric Number: " + this.matricNum);
	}
}
